<?php

return array(
	'disableLoadDefaultDecorators' => true,
	'decorators' => array(
		array(
			'decorator' => 'FormElements',
		),
		array(
			'decorator' => 'Form',
		)
	),
	'displayGroupDecorators' => array(
		array('decorator' => 'FormElements'),
		array(
			'decorator' => 'HtmlTag',
			'options' => array(
				'tag' => 'dl'
			)
		),
		array('decorator' => 'Fieldset'),
	),
    'elements' => array(
        'object_title' => array(
			'type' => 'text',
			'options' => array(
				'order' => 10,
				'label' => 'Название',
				'required' => true,
				'filters' => array(
					'StringTrim',
				),
			)
		),
        'object_pub_date' => array(
            'type' => 'DatePicker',
            'options' => array(
                'order' => 20,
                'label' => 'Дата публикации',
                'required' => false,
                'filters' => array(
					'StringTrim',
				),
                'JQueryParams' => array(
                    'dateFormat' => 'dd.mm.yy'
                )
            )
        ),
        'object_pub_period' => array(
            'type' => 'DatePicker',
            'options' => array(
                'order' => 30,
                'label' => 'Период публикации',
                'required' => false,
                'filters' => array(
					'StringTrim',
				),
                'JQueryParams' => array(
                    'dateFormat' => 'dd.mm.yy'
                )
            )
        ),
        'object_status' => array(
			'type' => 'select',
			'options' => array(
				'order' => 40,
				'label' => 'Статус',
				'required' => true,
				'multiOptions' => array(
                    0 => 'Скрытый',
                    1 => 'Активный'
                ),
                'filters' => array('Int')
			)
		),
        'object_code' => array(
			'type' => 'text',
			'options' => array(
				'order' => 50,
				'label' => 'Символьный код',
				'required' => false,
				'filters' => array(
					'StringTrim',
				),
			)
		),
        /*'object_preview_text' => array(
			'type' => 'textarea',
			'options' => array(
				'order' => 60,
				'label' => 'Краткое содержимое(анонс)',
				'required' => false,
			)
		),*/
        'object_text' => array(
			'type' => 'textarea',
			'options' => array(
				'order' => 70,
				'label' => 'Содержание',
				'required' => false,
			)
		),
    ),
	'displayGroups' => array(
		array(
			'order' => 1,
			'name' => 'default',
			'elements' => array(
				'object_title',
				'object_pub_date',
				'object_pub_period',
				'object_status',
				'object_code',
				'object_preview_text',
				'object_text',
			),
			'options' => array(
				'legend' => 'Основные поля'
			)
		)
	)
);

?>